package solver;

import problem.TestProblem;
import problem.model.Constraint;

public class DemoCplex2
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		try
		{
			CplexSolver solver = new CplexSolver();


			TestProblem lp = new TestProblem();

			
			for (Constraint currentConstraint : lp.getConstraints())
			{
				System.out.println(currentConstraint);
			}
			
			System.out.println(lp.getObjectivfunction());
			
			solver.solve(lp);
		} catch (RuntimeException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
